package com.neusoft.aclome.cmp.cloud.server.jcce.repository;

import com.neusoft.aclome.cmp.cloud.server.jcce.dto.response.JcceJobDTO;
import com.neusoft.aclome.cmp.cloud.server.jcce.entity.JcceJobEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

@org.apache.ibatis.annotations.Mapper
@Repository
public interface JcceJobMapper extends Mapper<JcceJobEntity> {
    List<JcceJobEntity> selectByCondition(@Param("jobName") String jobName,
                                          @Param("jobType") String jobType,
                                          @Param("cloudPlatformId") Integer cloudPlatformId,
                                          @Param("status") String status);

    List<JcceJobDTO> selectByConditionToDto(@Param("jobName") String jobName,
                                            @Param("jobType") String jobType,
                                            @Param("cloudPlatformId") Integer cloudPlatformId,
                                            @Param("status") String status,
                                            @Param("arriveStartTime") Date arriveStartTime,
                                            @Param("arriveEndTime")Date  arriveEndTime);
}